import { createStore } from 'redux'
import reducer from './reducer'


const store = createStore(reducer)

store.subscribe(() => {
  console.log('state数据', store.getState());
})

export default store